package org.jiajie.coffeecodes.demo.jvm.instructions.loads.dload;

import org.jiajie.coffeecodes.demo.jvm.instructions.base.InstructionIndex8;
import org.jiajie.coffeecodes.demo.jvm.rtda.Frame;
import org.jiajie.coffeecodes.demo.jvm.rtda.heap.methodarea.Object;

/**
 * load double from local variable
 * @author jie
 */
public class DLOAD extends InstructionIndex8 {

    @Override
    public void execute(Frame frame) {
        double val = frame.localVars().getDouble(this.idx);
        frame.operandStack().pushDouble(val);
    }
}
